package com.vpen.account.demo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.vpen.clib.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户角色表(AccountRole)表实体类
 *
 * @author vpen
 * @since 2022-08-16 09:48:42
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class AccountRole extends Model<AccountRole> implements BaseEntity {
    private Integer id;

    private String name;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

